package com.education.welco.service.impl;

import com.education.welco.mapper.ReviewMapper;
import com.education.welco.pojo.Review;
import com.education.welco.service.ReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 审核表 服务层实现
 *
 * @author d
 * @date 2020-12-04 13:52:48
 */
@Service
public class ReviewServiceImpl implements ReviewService {

    @Autowired
    private ReviewMapper reviewMapper;

    //查询审核表信息
    @Override
    public Review selectReviewById(Integer id) {
        return reviewMapper.selectReviewById(id);
    }

    // 查询审核表列表
    @Override
    public List<Review> selectReviewList(Review review) {
        return reviewMapper.selectReviewList(review);
    }

    // 新增审核表
    @Override
    public int insertReview(Review review) {
        return reviewMapper.insertReview(review);
    }

    //修改审核表
    @Override
    public int updateReview(Review review) {
        return reviewMapper.updateReview(review);
    }

    //删除审核表对象
    @Override
    public int deleteReviewByIds(String[] ids) {
        return reviewMapper.deleteReviewByIds(ids);
    }
}